﻿using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Schism.Cameras;

namespace Schism
{
    public static class Globals
    {
        public static string Version = "0.0.32[55]";
        public const int GLOBAL_TILE_WIDTH = 64;
        public const int GLOBAL_TILE_HEIGHT = 64;
        

        //Assign Walls
        public static readonly Point[] WallDirections = new Point[4] {
                new Point(0, -1), // NORTH
                new Point(1, 0), // EAST
                new Point(0, 1), //SOUTH
                new Point(-1, 0) // WEST
            };

        public static int RandomInt(int min, int max)
        {
            return ObjectHolder.RandomGen.Next(min, max);
        }
    }

    public static class ObjectHolder
    {
        public static Game GameObject { get; set; }
        public static Camera GameCamera { get; set; }

        private static Random _RandomGen;
        public static Random RandomGen
        {
            get
            {
                if (_RandomGen == null)
                    _RandomGen = new Random();

                return _RandomGen;
            }
        }
    }
}
